package com.roy.comet;

import org.springframework.jdbc.core.JdbcTemplate;

import java.util.List;

/**
 * Created by mc on 18/4/13.
 */
public class CometNode {

    private List<JdbcTemplate> jdbcTemplates;

    public List<JdbcTemplate> getJdbcTemplates() {
        return jdbcTemplates;
    }

    public void setJdbcTemplates(List<JdbcTemplate> jdbcTemplates) {
        this.jdbcTemplates = jdbcTemplates;
    }

    public JdbcTemplate getJdbcTemplate(Integer node) {
        return jdbcTemplates.get(node);
    }
}
